//#define __DEBUG__
// by Xeno
#define THIS_FILE "fn_getranpointcircleair.sqf"
#include "x_setup.sqf"

//_dstart_pos = [position player, 200] call FUNC(GetRanPointCircleAir);

// no slope check, for patrolling
private ["_center", "_radius", "_center_x", "_center_y", "_co", "_x1", "_y1"];
PARAMS_2(_center,_radius);
_center_x = _center select 0;_center_y = _center select 1;
for "_co" from 0 to 3 do {
	_x1 = _center_x + (_radius - (random (2 * _radius)));
	_y1 = _center_y + (_radius - (random (2 * _radius)));
};
[_x1, _y1, 0]